package com.foreverwin.mes.production.service;

import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.exception.BusinessException;
import com.foreverwin.mes.production.model.ClockLog;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Syngna
 * @since 2019-01-03
 */
public interface ClockLogService extends IService<ClockLog> {

    ClockLog findLastEmployeeInResource(String site, String resource);

    List<ClockLog> getResourceClockInEmployee(String site, String resource);

    List<ClockLog> getStationClockInEmployee(String site, String station, Date nowDate) throws BusinessException;

    void clockIn(String site, String station, String employee, Date nowDate) throws BusinessException;

    void clockOut(String site, String station, String shift, String employee) throws BusinessException;

    void verifyClockIn(String site, String resource, Date nowDate) throws BusinessException;

    void verifySpotCheck(String site, String resource, Date nowDate) throws BusinessException;

}